home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Python 1.3 / source code / Modules / Setup.in < prev    next >
Encoding:
Text File  |  1995-12-17  |  10.3 KB  |  319 lines  |  [TEXT/R*ch]

  1. # The file Setup is used by the makesetup script to construct the files
  2. # Makefile and config.c, from Makefile.pre and config.c.in,
  3. # respectively.  The file Setup itself is initially copied from
  4. # Setup.in; once it exists it will not be overwritten, so you can edit
  5. # Setup to your heart's content.  Note that Makefile.pre is created
  6. # from Makefile.pre.in by the toplevel configure script.
  7.  
  8. # (VPATH notes: Setup and Makefile.pre are in the build directory, as
  9. # are Makefile and config.c; the *.in files are in the source
  10. # directory.)
  11.  
  12. # Each line in this file describes one or more optional modules.
  13. # Comment out lines to suppress modules.
  14. # Lines have the following structure:
  15. #
  16. # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
  17. #
  18. # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
  19. # <cpparg> is anything starting with -I, -D, -U or -C
  20. # <library> is anything ending in .a or beginning with -l or -L
  21. # <module> is anything else but should be a valid Python
  22. # identifier (letters, digits, underscores, beginning with non-digit)
  23. #
  24. # Lines can also have the form
  25. #
  26. # <name> = <value>
  27. #
  28. # which defines a Make variable definition inserted into Makefile.in
  29. #
  30. # Finally, if a line has the literal form
  31. #
  32. # *noconfig*
  33. #
  34. # (that is including the '*' and '*' !) then the following modules will
  35. # not be included in the config.c file, nor in the list of objects to be
  36. # added to the library archive, and their linker options won't be added 
  37. # to the linker options, but rules to create their .o files and their
  38. # shared libraries will still be added to the Makefile, and their
  39. # names will be collected in the Make variable SHAREDMODS.  This is
  40. # used to build modules as shared libraries.  (They must be installed
  41. # using "make sharedinstall".)
  42.  
  43. # NOTE: As a standard policy, as many modules as can be supported by a
  44. # platform should be present.  The distribution comes with all modules
  45. # enabled that are supported by most platforms and don't require you
  46. # to ftp sources from elsewhere.
  47.  
  48.  
  49. # Some special rules to define PYTHONPATH.
  50. # Edit the definitions below to indicate which options you are using.
  51. # Don't add any whitespace or comments!
  52.  
  53. # Don't edit this (usually)
  54. DESTLIB=$(prefix)/lib/python
  55.  
  56. # Site specific path insertions -- should begin with : if non-empty
  57. SITEPATH=
  58.  
  59. # Standard path -- don't edit
  60. DESTPATH=:$(DESTLIB)
  61.  
  62. # Standard enabled (tests are always available)
  63. TESTPATH=:$(DESTLIB)/test
  64.  
  65. # Path for machine- or system-dependent modules (and shared libraries)
  66. MACHDEPPATH=:$(DESTLIB)/$(MACHDEP)
  67.  
  68. COREPYTHONPATH=.$(SITEPATH)$(DESTPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
  69. PYTHONPATH=$(COREPYTHONPATH)
  70.  
  71.  
  72. # The modules listed here can't be built as shared libraries for
  73. # various reasons; therefore they are listed here instead of in the
  74. # normal order.
  75.  
  76. # Some modules that are normally always on:
  77.  
  78. posix posixmodule.c        # posix (UNIX) system calls
  79. signal signalmodule.c        # signal(2)
  80.  
  81. # The SGI specific GL module:
  82.  
  83. #gl glmodule.c -lgl -lX11    # Graphics Library -- SGI only
  84.  
  85. # Thread module -- works on selected systems only, e.g. SGI IRIX and
  86. # on SunOS 5.x (SOLARIS) only.
  87. # Note that you must have configured (and built!) Python with the
  88. # --with-thread option passed to the configure script for this to work:
  89.  
  90. #thread threadmodule.c
  91.  
  92. # Uncommenting the following line tells makesetup that all following
  93. # modules are to be built as shared libraries (see above for more
  94. # detail):
  95.  
  96. #*noconfig*
  97.  
  98.  
  99. # Modules that should always be present (non UNIX dependent):
  100.  
  101. array arraymodule.c    # array objects
  102. math mathmodule.c -lm    # math library functions, e.g. sin()
  103. regex regexmodule.c regexpr.c    # Regular expressions, GNU Emacs style
  104. strop stropmodule.c    # fast string operations implemented in C
  105. struct structmodule.c    # binary structure packing/unpacking
  106. time timemodule.c    # time operations and variables
  107.  
  108.  
  109. # Modules with some UNIX dependencies -- on by default:
  110. # (If you have a really backward UNIX, select and socket may not be
  111. # supported...)
  112.  
  113. fcntl fcntlmodule.c    # fcntl(2) and ioctl(2)
  114. pwd pwdmodule.c        # pwd(3) 
  115. grp grpmodule.c        # grp(3)
  116. crypt cryptmodule.c # -lcrypt    # crypt(3); needs -lcrypt on some systems
  117. select selectmodule.c    # select(2); not on ancient System V
  118. socket socketmodule.c    # socket(2); not on ancient System V
  119.  
  120.  
  121. # Some more UNIX dependent modules -- off by default, since these
  122. # are not supported by all UNIX systems:
  123.  
  124. #dbm dbmmodule.c     # dbm(3) may require -lndbm or similar
  125. #nis nismodule.c     # Sun yellow pages -- not everywhere
  126. #termios termios.c    # Steen Lumholt's termios module
  127.  
  128.  
  129. # Multimedia modules -- on by default.
  130. # These represent audio samples or images as strings:
  131.  
  132. audioop audioop.c    # Operations on audio samples
  133. imageop imageop.c    # Operations on images
  134. rgbimg rgbimgmodule.c   # Read SGI RGB image files (but coded portably)
  135.  
  136.  
  137. # The stdwin module provides a simple, portable (between X11 and Mac)
  138. # windowing interface.  You need to ftp the STDWIN library, e.g. from
  139. # ftp://ftp.cwi.nl/pub/stdwin.  (If you get it elsewhere, be sure to
  140. # get version 1.0 or higher!)  The STDWIN variable must point to the
  141. # STDWIN toplevel directory.
  142.  
  143. # Uncomment and edit as needed:
  144. #STDWIN=/ufs/guido/src/stdwin
  145.  
  146. # Uncomment these lines:
  147. #STDWINPATH=:$(DESTLIB)/stdwin
  148. #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
  149. #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
  150. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
  151.  
  152. # Use this instead of the last two lines above for alphanumeric stdwin:
  153. #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
  154. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
  155.  
  156.  
  157. # The md5 module implements the RSA Data Security, Inc. MD5
  158. # Message-Digest Algorithm, described in RFC 1321.  The necessary files
  159. # md5c.c and md5.h are included here.
  160.  
  161. md5 md5module.c md5c.c
  162.  
  163.  
  164. # The mpz module interfaces to the GNU Multiple Precision library.
  165. # You need to ftp the GNU MP library.  
  166. # The GMP variable must point to the GMP source directory.
  167. # This was originally written and tested against GMP 1.2.  I have
  168. # compiled it against GMP 1.3.2 (the latest I believe) and it seems to
  169. # work OK, but I haven't tested it thoroughly (lacking knowledge about
  170. # it).
  171.  
  172. # A compatible MP library unencombered by the GPL also exists.  It was
  173. # posted to comp.sources.misc in volume 40 and is widely available from
  174. # FTP archive sites. One URL for it is:
  175. # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
  176.  
  177. #GMP=/ufs/guido/src/gmp
  178. #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
  179.  
  180.  
  181. # SGI IRIX specific modules -- off by default.
  182.  
  183. # These module work on any SGI machine:
  184.  
  185. # *** gl must be enabled higher up in this file ***
  186. #fm fmmodule.c -lfm -lgl        # Font Manager
  187. #sgi sgimodule.c            # sgi.nap() and a few more
  188.  
  189. # This module requires the header file
  190. # /usr/people/4Dgifts/iristools/include/izoom.h:
  191.  
  192. #imgfile imgfile.c -limage -lgutil -lm    # Image Processing Utilities
  193.  
  194.  
  195. # These modules require the Multimedia Development Option (I think):
  196.  
  197. #al almodule.c -laudio            # Audio Library
  198. #cd cdmodule.c -lcdaudio -lds -lmediad    # CD Audio Library
  199. #cl clmodule.c -lcl -lawareaudio    # Compression Library
  200. #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11    # Starter Video
  201.  
  202.  
  203. # The FORMS library, by Mark Overmars, implements user interface
  204. # components such as dialogs and buttons using SGI's GL and FM
  205. # libraries.  You must ftp the FORMS library separately from
  206. # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS.  It was tested with FORMS 2.2a.
  207. # The FORMS variable must point to the FORMS subdirectory of the forms
  208. # toplevel directory:
  209.  
  210. #FORMS=/ufs/guido/src/forms/FORMS
  211. #fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
  212.  
  213.  
  214. # SunOS specific modules -- off by default:
  215.  
  216. #sunaudiodev sunaudiodev.c
  217.  
  218.  
  219. # George Neville-Neil's timing module:
  220.  
  221. #timing timingmodule.c
  222.  
  223.  
  224. # Steen Lumholt's tkinter module.
  225. #
  226. # For use with plain Tk, use the first line.
  227. #
  228. # For use with extended Tk (i.e. if you have added extra widgets to
  229. # the Tk library, such as the common "studButton" and "triButton"
  230. # extensions), edit tkappinit.c, add appropriate -DWITH_... and
  231. # libraries/objects to the second line, and use that.
  232. #
  233. # In all cases also enable the last line (TKPATH).
  234. #
  235. # See the section "The Tk interface" in ../README for more info.
  236.  
  237. # *** Use ONE of the following two lines, see previous comments ***
  238. #tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
  239. #tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
  240.  
  241. # *** ALWAYS use this line as well ***
  242. #TKPATH=:$(DESTLIB)/tkinter
  243.  
  244.  
  245. # Lance Ellinghaus's modules:
  246.  
  247. rotor rotormodule.c        # enigma-inspired encryption
  248. #syslog syslogmodule.c        # syslog daemon interface
  249.  
  250.  
  251. # Lance's curses module.  This requires the System V version of
  252. # curses, sometimes known as ncurses (e.g. on Linux, link with
  253. # -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
  254. # -L/usr/5lib before -lcurses).
  255.  
  256. #curses cursesmodule.c -lcurses -ltermcap
  257.  
  258.  
  259.  
  260. # Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
  261.  
  262. #new newmodule.c
  263.  
  264.  
  265. # John Redford's sybase module (requires sybase):
  266. # (Unfortunately this code is orphaned.  Read the source for documentation.)
  267.  
  268. #sybase sybasemodule.c
  269.  
  270.  
  271. # Generic (SunOS / SVR4) dynamic loading module.
  272. # This is not needed for dynamic loading of Python modules --
  273. # it is a highly experimental and dangerous device for calling
  274. # *arbitrary* C functions in *arbitrary* shared libraries:
  275.  
  276. #dl dlmodule.c
  277.  
  278.  
  279. # Anthony Baxter's gdbm module (derived from Jack's dbm module)
  280. # GNU dbm(3) will require -lgdbm:
  281.  
  282. #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
  283.  
  284.  
  285. # Berkeley DB interface.
  286. #
  287. # This requires the Berkeley DB code, see
  288. # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
  289. #
  290. # Edit the variables DB and DBPORT to point to the db top directory
  291. # and the subdirectory of PORT where you built it.
  292.  
  293. #DB=/depot/sundry/src/db.1.85/
  294. #DBPORT=$(DB)/PORT/sunos.5.2
  295. #bsddb bsddbmodule.o -I$(DB)/include -I$(DBPORT) $(DBPORT)/libdb.a
  296.  
  297.  
  298.  
  299. # Andy Bensky's "environment" module (contains putenv())
  300. #environment environment.c
  301.  
  302. # David Wayne Williams' soundex module
  303. #soundex soundex.c
  304.  
  305. # Objective-C (incomplete!!!)
  306. #objc.c
  307.  
  308. # Helper module for various ascii-encoders
  309. binascii binascii.c
  310.  
  311. # Fred Drake's interface to the Python parser.
  312. # (Not enabled by default because it is big and doesn't compile with
  313. # cc on SunOS 4.1.3)
  314. #parser parsermodule.c
  315.  
  316.  
  317. # Example -- included for reference only:
  318. # xx xxmodule.c
  319.